package com.showtao.front.domain;

import com.showtao.common.enumeration.PageEnum;

public enum ArticleStatus implements PageEnum {
    
    DRAF("D", "草稿"), 
    PUBLISHED("P", "已发布"), 
    CANCELLED("C", "已撤销");

    private String code;

    private String text;

    ArticleStatus(String code, String text) {
        this.code = code;
        this.text = text;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getText() {
        return text;
    }

    @Override
    public void setText(String text) {
        this.text = text;
    }
}
